import axios from './index.js'
//获取感染者信息分页数据
const patientInfoList = params => {
    return axios.get('/patientInfo/list', params)
}
const patientInfoListAll = params => {
    return axios.get('/patientInfo/listAll')
}
const optionTreeInfo = params => {
    return axios.get('/patientInfo/optionTreeInfo')
}
const addPatientInfo = params => {
    return axios.post('/patientInfo/addPatientInfo', params)
}
const patientInfoInfoDetail = id => {
    return axios.get(`/patientInfo/detail/${id}`)
};
const deletePatientInfo = id => {
    return axios.get(`/patientInfo/delete/${id}`)
};
const updatePatientInfo = params => {
    return axios.post('/patientInfo/update', params)
}
const getPatientNum = params => {
    return axios.get('/patientInfo/getPatientNum')
}
export default {
    patientInfoList,
    addPatientInfo,
    patientInfoListAll,
    optionTreeInfo,
    patientInfoInfoDetail,
    deletePatientInfo,
    updatePatientInfo,
    getPatientNum
}
